import * as account from './controller'

export const baseUrl = '/account'

export default [{
    method: 'POST',
    route: '/sendVerificationCode',
    handlers: [account.sendVerificationCode]
},
 {
    method: 'POST',
    route: '/register',
    handlers: [account.register]
},
 {
    method: 'POST',
    route: '/findPassword',
    handlers: [account.findPassword]
},
 {
    method: 'POST',
    route: '/loginByCode',
    handlers: [account.loginByCode,account.getAccount]
}, 
 {
    method: 'POST',
    route: '/loginByQQ',
    handlers: [account.loginByQQ,account.getAccount]
}, 
 {
    method: 'POST',
    route: '/loginByWechat',
    handlers: [account.loginByWechat,account.getAccount]
}, 
 {
    method: 'POST',
    route: '/loginByPassword',
    handlers: [account.loginByPassword,account.getAccount]
},
 {
    method: 'POST',
    route: '/perfectAccountDetail',
    handlers: [account.checkToken,account.perfectAccountDetail]
},

 {
    method: 'POST',
    route: '/getAccountDetail',
    handlers: [account.checkToken,account.getAccountDetail]
},
 {
    method: 'POST',
    route: '/bindPhone',
    handlers: [account.checkToken,account.bindPhone]
}
]